<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\Common\service;

class LongbingUserInfoService
{
    public static function getNameByUserId($userId)
    {
        $userInfo = new \app\Common\model\LongbingUserInfo();
        $name = $userInfo->where(["fans_id" => $userId])->value("name");
        return $name;
    }
    public static function isStraffByUserId($userId)
    {
        $userInfo = new \app\Common\model\LongbingUserInfo();
        $is_staff = $userInfo->where(["fans_id" => $userId])->value("is_staff");
        return $is_staff ? true : false;
    }
}

?>